package com.open.capacity.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @description:
 * @date:2021/5/19 下午5:31
 * @author:jxy
 */
@Data
@TableName("crm_industry")
@EqualsAndHashCode(callSuper = true)
public class CrmIndustry extends Model<CrmIndustry> implements Serializable {
    private static final long serialVersionUID = -5886012896205132070L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)  //雪花算法  id生成策略
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @TableField(value = "industry_name")
    private String industryName;
    @TableField(value = "position_name")
    private String positionName;

    private Long pid;
    private int status;
    private int page;
    private int limit;
}
